
package com.eshop.we.business.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.eshop.we.business.BaseBusinessImpl;
import com.eshop.we.business.ExchangeBusiness;
import com.eshop.we.exchange.api.ExchangeService;
import com.eshop.we.exchange.dto.ExchangeDto;
import com.eshop.we.exchange.entity.Exchange;
import com.eshop.we.exchange.form.ExchangeForm;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wangzhanguo
 * @create 2018-06-04 15:31
 **/
@Service
public class ExchangeBusinessImpl extends BaseBusinessImpl<Exchange,ExchangeService> implements ExchangeBusiness{
    @Reference
    private ExchangeService exchangeService;

    @Override
    public List<ExchangeDto> selectExchangeList(Integer userId) {
        return exchangeService.selectExchangeList(userId);
    }

    @Override
    public Integer updateExchangeDel(Integer id) { return exchangeService.updateExchangeDel(id); }

    @Override
    public List<ExchangeDto> selectMathExchange(Integer exchangeId,Integer schoolId, Integer userId) {
        return exchangeService.selectMathExchange(exchangeId,schoolId,userId);
    }

    @Override
    public void add(ExchangeForm exchange) {
        exchangeService.add(exchange);
    }
}

